package com.pi.iot.repository.constants;

/**
 * @description 透传指令枚举
 * @author chenmfa
 */
public enum PiInsEnum {
  OPEN_LOCK((byte)0, 1, "开门指令(暂时无指令类型)"),
  LOCK_RESET((byte)0x03, 2, "清空所有用户信息"),
  ICCARD_ADD((byte)0x04, 2, "IC卡添加"),
  ICCARD_RISE((byte)0x04, 2, "IC卡添加服务端发起"),
  ICCARD_DEL((byte)0x05, 2, "IC卡删除"),
  ICCARD_CLEAR((byte)0x05, 2, "IC清空"),
  FINGER_ADD_RISE((byte)0x06, 2, "指纹录入发起"),
  FINGER_DEL((byte)0x07, 2, "指纹删除"),
  FINGER_CLEAR((byte)0x07, 2, "指纹清空"),
  PWD_ADD((byte)0x08, 2, "密码添加"),
  PWD_RISE((byte)0x08, 2, "密码添加"),
  PWD_DEL((byte)0x09, 2, "密码删除"),
  PWD_CLEAR((byte)0x09, 2, "密码删除"),
  TEMP_PWD((byte)0x0A, 2, "临时钥匙添加"),
  ;
  private PiInsEnum(byte ins, int insType, String desc) {
    this.ins = ins;
    this.desc = desc;
    this.insType =insType;
  }
  private byte ins;
  private int insType;//指令类型 1. 可以直接发送的指令 2. 需要待设备有上传消息时才发送的指令
  private String desc;
  public byte getIns() {
    return ins;
  }
  public String getDesc() {
    return desc;
  }
  public int getInsType() {
    return insType;
  }
}
